﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Gfw.Web.Models.Account
{
    public class WarrantTransferQueryModel
    {
        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "当前登录用户ID")]
        public string CurrentUserID { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "转出用户ID")]
        public string UserID { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "转入用户ID")]
        public string ToUserID { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "转出用户账号")]
        public string UserLoginName { get; set; }

        [Required]
        [DataType(DataType.Text)]
        [Display(Name = "转入用户账号")]
        public string ToUserLoginName { get; set; }

        [DataType(DataType.DateTime)]
        [Display(Name = "担保时间")]
        public DateTime? TradeDate { get; set; }

        [DataType(DataType.Currency)]
        [Display(Name = "金额")]
        public decimal Money { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "状态")]
        public string Status { get; set; }

        [DataType(DataType.DateTime)]
        [Display(Name = "过期时间")]
        public DateTime? RemainDate { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "摘要")]
        public string TradeAbstract { get; set; }
    }



    /// <summary>
    /// 查询担保交易model
    /// </summary>
    public class WarrantTransferQueryViewModel
    {
        [DataType(DataType.Text)]
        [Display(Name = "查询担保状态")]
        public string Status { get; set; }

        [DataType(DataType.Date)]
        [Display(Name = "查询日期")]
        public DateTime? Start { get; set; }

        [DataType(DataType.Date)]
        [Display(Name = "至")]
        public DateTime? End { get; set; }
    }
}
